//
//  WABMSCommon.h
//  WonderAnalyticsSDK
//
//  Created by zero on 2021/8/11.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface WABMSCommon : NSObject

@property (nonatomic, strong) NSString *uuidString;

+ (instancetype)shareInstance;


/// 获取设备当前时间 单位是秒
+ (NSString *)now;


/// 获取设备开机时间 单位是秒
+ (time_t)getDeviceStartupTime;


/// 设置重复的定时任务
/// @param reportTime 时间
/// @param handler 任务
+ (void)setReportTimerWithTime:(NSUInteger )reportTime CompletionHandler:(dispatch_block_t)handler;


/// 解除定时任务
+ (void)invalidateReportTimer;


/// 判断字符串是否为空
/// @param string 字符串
+ (BOOL)stringIsEmpty:(NSString *)string;


/// 获取OpenId
+ (NSString *)getOpenId;


/// 获取设备的 IDFA
+ (NSString *)getDeviceIDFA;


/// 获取设备的 IDFV
+ (NSString *)getDeviceIDFV;


/// 格式化友盟ID
/// @param ymId 友盟id
+ (NSString *)formatYmId:(NSString *)ymId;

@end

NS_ASSUME_NONNULL_END
